﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Wekit.Model.Auth;
using Wekit.Web.Models;
namespace Wekit.Web.Security
{
    /// <summary>
    /// 账户相关类的服务端
    /// </summary>
    public  interface IPrincipalService
    {
        /// <summary>
        /// 根据传入的对象创建用户实体
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        User createUser(User user);

       /// <summary>
       /// 根据传入的参数实现用户创建功能
       /// </summary>
       /// <param name="userId">用户登录名</param>
       /// <param name="password">用户密码</param>
       /// <param name="email">用户的电子邮件</param>
       /// <returns></returns>
        User createUser(string userId, string password, string email);
        
        /// <summary>
        /// 根据注册对象来创建用户
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        User createUser(RegisterModel model);

    }
}
